#{meta /}

#{stylesheet "words/adj-index.css"/}

#{body}

<div class="container">
	<div class="row">
		<div class="col-lg-2 col-sm-3 col-xs-6">
			<h3>形容词</h3>
			<div class="list-group">
				#{list items:indexes, as:'i'}
					<a href="@{adjectives.AdjectiveWordIndex.page(i)}" class="list-group-item #{if i==index}active#{/if}">${i}</a>
				#{/list}
			</div>
		</div>
		<div class="col-lg-10 col-sm-9 col-xs-6">
			<div class="row">
				<div class="col-lg-10">
					<h3>${index}</h3>
				</div>
			</div>
			<hr/>

			#{list items:groups, as:'group'}
			<div>
				<div class="font-bold">${group.value}</div>
				<div class="div-group">
					<table class="table table-bordered table-words">
						<tbody>
						#{list items:group.words, as:'word'}
							<tr>
								<th><a href="${word.href}" class="word-link">${word.value}</a></th>
								<td>
									#{list items:word.alias, as:'alias'}
										<div>${alias}</div>
									#{/list}
								</td>
								<td>
									#{list items:word.meanings, as:'meaning'}
										<div>${meaning}</div>
									#{/list}
									#{if word.fixwords}
										<table class="table-fixwords">
											#{list items:word.fixwords, as:'fixword'}
												<tr>
													<td>【${fixword.value}】</td>
													<td>${fixword.meaning}</td>
												</tr>
											#{/list}
										</table>
									#{/if}
								</td>
								<td>
									<span>形</span>
									#{list items:word.types, as:'type'}
										<span>${type}</span>
									#{/list}
								</td>
							</tr>
						#{/list}
						</tbody>
					</table>
				</div>
			</div>
			#{/list}
			#{else}
				<p>（无）</p>
			#{/else}
		</div>
	</div>
</div>

#{/body}